/*
 * @Author: jiutian
 * @Date: 2023-01-31 10:29:19
 * @LastEditTime: 2023-02-07 09:21:01
 * @LastEditors:  
 */
import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import "./assets/main.css";
import "./assets/reset.less";
import "@wangeditor/editor/dist/css/style.css"; // 引入 css
import "./assets/font/iconfont.css";
import { createPinia } from "pinia";

const app = createApp(App);

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

// console.log(import.meta.env);

// 挂载路由 ， 初始化路由
app.use(router);
app.use(createPinia());
app.use(ElementPlus);

app.mount("#app");
